const weapi = require('./index.js')

// 应用信息
const appinfo = (appId) => {
  return new Promise((resolve, reject) => {
    wx.request({
      method: 'GET',
      url: weapi.server('/api/lmp/app_info'),
      header: {
        Authorization: weapi.getToken()
      },
      data: {
        sk: appId
      },
      success (res) {
        resolve(res.data)
      },
      fail () {
        reject()
      }
    })
  })
}

module.exports = {
  appinfo
}
